package org.gpp.proj1.communication.sender;

import org.gpp.proj1.communication.ConnectionException;
import org.gpp.proj1.communication.protocol.Message;

public interface RequestSenderIF {
	
	/**
	 * Disconnect client.
	 */
	public void disconnect() throws ConnectionException;
	
	/**
	 * Ping client and wait response.
	 */
	public void ping() throws ConnectionException;
	
	/**
	 * Send data to client.
	 */
	public void send( Message message ) throws ConnectionException;

	/**
	 * @return The id of the server this sender is connected to
	 */
	public String getServerId();
	
	/**
	 * @return This sender's client id
	 */
	public String getClientId();
}